<?php
class LangController extends AppController {
	var $name = 'Lang';
	var $useTable = false;
	var $uses = null;

	function change($var = null) {
		if ($var == "vie") {
			Configure::write('Config.language', "vie");
		} else {
			Configure::write("Config.language", "eng");
		}

		$this->Session->write("lang", $var);
		$this->redirect($this->referer(null, true));
	}
}
?>